package com.blog.back.dao.ext;

import com.blog.dto.ArticleDTO;
import com.blog.vo.ArticleListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author codeDorado
 * @version 1.0
 * @date 2020/8/15 23:22
 */
@Mapper
public interface ArticleDTOMapper {

    public List<ArticleDTO> selectByUser(Long userId);

    public List<ArticleDTO> selectByUserLikeOther(@Param("userId") Long userId, @Param("keywords") String keywords);

    public List<ArticleDTO> selectMostArticles(Long userId);

}
